package com.github.wxiaoqi.security.gate.v2.config;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import cn.hutool.setting.Setting;
import lombok.Getter;

@Component
public class AgGatewayProperties {
	@Value("config/gateway-${spring.profiles.active}.setting")
	private String env;
	
	@Getter
	private String[] ignore;
	
	@PostConstruct
	private void init() {
		Setting s = new Setting(env,true);
		ignore = s.getStrings("ignore");
	}
}
